<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="_qzeZkO-rEeKjOqksimE_UQ" targetNamespace="http://activiti.org/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:process id="fourFailingServiceTasks" name="4 Failing Service Tasks" isExecutable="true">
    <bpmn2:startEvent id="StartEvent_1" name="Start Event">
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:parallelGateway id="ParallelGateway_1" name="Parallel Gateway">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
    </bpmn2:parallelGateway>
    <bpmn2:sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="ParallelGateway_1" />
    <bpmn2:sequenceFlow id="SequenceFlow_2" sourceRef="ParallelGateway_1" targetRef="ServiceTask_1" />
    <bpmn2:serviceTask id="ServiceTask_1" name="Service Task 1" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true">
      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_3" sourceRef="ParallelGateway_1" targetRef="ServiceTask_2" />
    <bpmn2:serviceTask id="ServiceTask_2" name="Service Task 2" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true">
      <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_4" sourceRef="ParallelGateway_1" targetRef="ServiceTask_3" />
    <bpmn2:serviceTask id="ServiceTask_3" name="Service Task 3" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true">
      <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_5" sourceRef="ParallelGateway_1" targetRef="ServiceTask_4" />
    <bpmn2:serviceTask id="ServiceTask_4" name="Service Task 4" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true">
      <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_8" sourceRef="ServiceTask_1" targetRef="ParallelGateway_2" />
    <bpmn2:parallelGateway id="ParallelGateway_2" name="Parallel Gateway">
      <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
    </bpmn2:parallelGateway>
    <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="ServiceTask_2" targetRef="ParallelGateway_2" />
    <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="ServiceTask_3" targetRef="ParallelGateway_2" />
    <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="ServiceTask_4" targetRef="ParallelGateway_2" />
    <bpmn2:endEvent id="EndEvent_1" name="End Event">
      <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_14" sourceRef="ParallelGateway_2" targetRef="EndEvent_1" />
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="multipleFailingServiceTasks">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="109" y="387" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_2" bpmnElement="ParallelGateway_1">
        <dc:Bounds x="195" y="380" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_2" targetElement="_BPMNShape_ParallelGateway_2">
        <di:waypoint xsi:type="dc:Point" x="145" y="405" />
        <di:waypoint xsi:type="dc:Point" x="195" y="405" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_2" bpmnElement="ServiceTask_1">
        <dc:Bounds x="360" y="96" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_2">
        <di:waypoint xsi:type="dc:Point" x="220" y="380" />
        <di:waypoint xsi:type="dc:Point" x="220" y="136" />
        <di:waypoint xsi:type="dc:Point" x="360" y="136" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="220" y="355" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_3" bpmnElement="ServiceTask_2">
        <dc:Bounds x="360" y="240" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_3">
        <di:waypoint xsi:type="dc:Point" x="245" y="405" />
        <di:waypoint xsi:type="dc:Point" x="302" y="405" />
        <di:waypoint xsi:type="dc:Point" x="302" y="280" />
        <di:waypoint xsi:type="dc:Point" x="360" y="280" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="270" y="405" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_4" bpmnElement="ServiceTask_3">
        <dc:Bounds x="360" y="365" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_4">
        <di:waypoint xsi:type="dc:Point" x="245" y="405" />
        <di:waypoint xsi:type="dc:Point" x="360" y="405" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="270" y="405" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_5" bpmnElement="ServiceTask_4">
        <dc:Bounds x="360" y="504" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_5">
        <di:waypoint xsi:type="dc:Point" x="220" y="430" />
        <di:waypoint xsi:type="dc:Point" x="220" y="544" />
        <di:waypoint xsi:type="dc:Point" x="360" y="544" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="220" y="505" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_3" bpmnElement="ParallelGateway_2">
        <dc:Bounds x="576" y="380" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="549" y="435" width="104" height="22" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ServiceTask_2" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460" y="136" />
        <di:waypoint xsi:type="dc:Point" x="518" y="136" />
        <di:waypoint xsi:type="dc:Point" x="518" y="405" />
        <di:waypoint xsi:type="dc:Point" x="576" y="405" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="485" y="136" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ServiceTask_3" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460" y="280" />
        <di:waypoint xsi:type="dc:Point" x="518" y="280" />
        <di:waypoint xsi:type="dc:Point" x="518" y="405" />
        <di:waypoint xsi:type="dc:Point" x="576" y="405" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ServiceTask_4" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460" y="405" />
        <di:waypoint xsi:type="dc:Point" x="576" y="405" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ServiceTask_5" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460" y="544" />
        <di:waypoint xsi:type="dc:Point" x="518" y="544" />
        <di:waypoint xsi:type="dc:Point" x="518" y="405" />
        <di:waypoint xsi:type="dc:Point" x="576" y="405" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_2" bpmnElement="EndEvent_1">
        <dc:Bounds x="676" y="387" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ParallelGateway_3" targetElement="_BPMNShape_EndEvent_2">
        <di:waypoint xsi:type="dc:Point" x="626" y="405" />
        <di:waypoint xsi:type="dc:Point" x="676" y="405" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
